import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
public class Example {

    @RequestMapping(value = "/")
    public String home() {
        return "hello word!";
    }

    public static void main ( String[] args ) {
        SpringApplication app = new SpringApplication(Example.class);
//        app.setBannerMode(Banner.Mode.OFF); // 关闭横幅
        app.run(args);
    }
}

